package com.gitee.ywj1352.consumer;

import com.gitee.ywj1352.consumer.service.DemoService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.io.IOException;

@SpringBootApplication(scanBasePackages = "com.gitee.ywj1352")
public class RpcfxClientApplication {

	public static void main(String[] args) throws IOException {

		ConfigurableApplicationContext context = SpringApplication.run(RpcfxClientApplication.class, args);

		DemoService bean = context.getBean(DemoService.class);

		bean.testRpc();

		System.in.read();
	}

}
